POV-Ray : Newsgroups : povray.advanced-users : Multiple #ifdef question : Re: Multiple #ifdef question Server Time
2 Nov 2024 07:27:03 EDT (-0400)
  Re: Multiple #ifdef question  
From: Nieminen Juha
Date: 8 Mar 2000 04:04:27
Message: <38c6179a@news.povray.org>
I don't think it's possible with a macro. Something like this will not work:

#macro Item(name)
  #ifdef(name)
    do_whatever_with name
  #end
#end

because 'name' _is_ always defined in the context of the macro.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.